package cn.s1995.sloth.bizs.oo.vo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;

import cn.s1995.sloth.bizs.entity.OrderItem;
import cn.s1995.sloth.bizs.entity.OrderRefund;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "订单明细")
public class OrderItemVO extends OrderItem{

	/**
	 * 退款
	 */
	@Schema(description = "退款记录")
	private OrderRefund orderRefund;

	/**
	 * 总金额（含运费）
	 */
	@Schema(description = "总金额（含运费）")
	private BigDecimal grandTotal;

	/**
	 * 订单明细项是否存在退款记录
	 */
	@Schema(description = "订单明细项是否存在退款记录")
	private boolean hasRefund;

	/**
	* 销售属性组合字符串 格式是p1:v1;p2:v2
	*/
    @Schema(description = "销售属性组合字符串 格式是p1:v1;p2:v2")
    private String properties;

}
